package robins;

import network.Constants;

/**
 * @author: Fatih Senel
 * Date: Jun 9, 2010
 * Time: 2:25:27 PM
 */
public class SEGMENT {
    int loc_r, loc_c; /* location(square) of this segment */
    int IQ;       /* QoS (BW) assigned between this segment & others */

    /* for OQAP2 1007 *****************************************/
    int[] Min_Cells = new int[Constants.MAX_N_SEGM]; /* min#ofCells to other seg */
    double[] len=new double[Constants.MAX_N_SEGM];       /* Euclidean distance for MST_RNP */
    int IsAtBorder;     /* 1 if it is at border */
    int next_r, next_c; /* location it will moved to */

    /* used for CLUSETER */
    int id;     /* Segment id */
    SEGMENT next;
    int clusterID;
    int FirstBorder;     /* 1 if it is the first border */


    public String toString() {
        return "Node "+id+" : ("+loc_r+","+loc_c+")"; 
    }
}
